import org.hibernate.Session;

import com.kutphpr.sistema.vendas.HibernatUtil;


public class Conecta {
	
	public static void main(String[] args) {
		Session sessao = null;
		try {
			sessao = HibernatUtil.getSession().openSession();
			System.out.println("Connectou !");		
			
		}finally{
			sessao.close();
			System.out.println("Fechou Conexao!");
		}
		
	}

}
